/* 全局样式 */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a0ca3;
  --secondary-color: #4cc9f0;
  --text-color: #333;
  --light-gray: #f5f7ff;
  --border-color: #e0e7ff;
}

/* 添加暗色主题变量 */
.dark-theme {
  --primary-color: #818cf8;
  --primary-dark: #4338ca;
  --secondary-color: #4cc9f0;
  --text-color: #ffffff;
  --light-gray: #252530;
  --border-color: #3a3a45;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9faff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

.dark-theme body {
  background-color: #121212;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 3px 10px rgba(67, 97, 238, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.25);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(67, 97, 238, 0.05);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(67, 97, 238, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .card {
  background: #1e1e24;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.12);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #555;
}

.dark-theme .form-label {
  color: #ffffff;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.dark-theme .form-input {
  background-color: #252530;
  color: #ffffff;
  border-color: #3a3a45;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.dark-theme .form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* 辅助类 */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } 

/* 添加html样式确保整个页面背景颜色覆盖 */
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.dark-theme html {
  background-color: #121212;
}

.dark-theme .btn-primary {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

.dark-theme .btn-primary:hover {
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.dark-theme .btn-secondary {
  background-color: #252530;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.dark-theme .btn-secondary:hover {
  background-color: #2a2a35;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
} 